<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script src="./eventproxy.js"></script>
<script>
    var ep = new EventProxy()

    function save(){
        console.log('111')
    }

    ep.on('save',save)
    ep.on('save',()=>{
        console.log('222')
    })
    // ep.removeListener('save',save)
    ep.emit('save',{})

    console.log(ep)
</script>